//
//  DYMainViewController.swift
//  Douyu_Swift
//
//  Created by Albert Zhu on 16/11/1.
//  Copyright © 2016年 Albert Zhu. All rights reserved.
//

import UIKit

class DYMainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        addChildVC()
    }
    
    func addChildVC() {
        let array = ["Home", "Live", "Follow", "Profile"]
        
        for string in array {
            guard let vc = UIStoryboard(name: string, bundle: nil).instantiateInitialViewController() else {return}
            
            addChildViewController(vc)
        }
    }
}
